package com.book.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author auto
 * @since 2025-04-02 06:38:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("shopping_car")
@Schema(name = "ShoppingCar对象", description = "购物车表")
public class ShoppingCar {

    @Schema(name = "主键")
    @TableId(value = "car_id", type = IdType.ASSIGN_UUID)
    private String carId;

    @Schema(name = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(name = "书本ID")
    @TableField("books_id")
    private String booksId;

    @Schema(name = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
